#ifndef  __PWM_H
#define  __PWM_H

extern volatile unsigned char flag_pwm;  
extern volatile short num_impulse;
extern volatile unsigned char flag_impulse;
extern volatile unsigned char flag_on_pwm; 
extern volatile unsigned char flag_run_pwm; 

void set_PWM(unsigned short _x);
void On_LT8410_20V(void);
void Out_Enable(void);
void Out_Disable(void);
void Out_impulse_Enable(void);
void Out_impulse_Disable(void);
void On_PWM(unsigned char _ad,unsigned char _p,unsigned short _num_impulse);
void Off_PWM(void);
void Init_PWM(unsigned short _x);

#endif